Remove duplicates in a String [] list f#

Posted by Jose Maria de la Torre on Stack Overflow See other posts from Stack Overflow or by Jose Maria de la Torre
Published on 2014-08-22T22:13:16Z Indexed on 2014/08/22 22:20 UTC
Read the original article Hit count: 155

Filed under:
|
|
|

I need some noob help...

I have a String[] list (a list that each element is a Array of strings)

I wish to remove all duplicates in the list. But to see if they are duplicates I need to see the fist element in the array.

what I have tried is

let NotDuplicated =
Duplicated.[0]
|> Seq.distinct


let NotDuplicated =
Duplicated
|> Seq.distinctBy id

but nothing is working... can you guys please help me.. thanks!!

© Stack Overflow or respective owner

Related posts about arrays

Related posts about list